package com.groupnections.server.database.liveFeed;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.groupnections.client.LiveFeed.LiveFeedDatabaseServerCalls;
import com.groupnections.shared.Entity;
import com.groupnections.shared.LiveFeed;

/**
 * 
 * @Architecture
 */
@SuppressWarnings("serial")
public class LiveFeedDatabaseImplementation extends RemoteServiceServlet
		implements LiveFeedDatabaseServerCalls {

	@Override
	public LiveFeed[] listLiveFeeds(Entity entity) {

		return ListLiveFeeds.list(entity);
	}

	@Override
	public void addLiveFeed(LiveFeed liveFeed) {

		SaveLiveFeed.addNew(liveFeed);
	}
}
